<template>
  <div class="box">
    <div class="container" v-for="(item, index) in listArr1" :key="index">
      <!-- 职位名称 -->
      <div class="container_name div_sty">
        <div class="logo">
          <img src="../../../../../assets/imgs/wrlogo.png" alt="" />
        </div>
        <div class="name_left">{{ item.name }}</div>
        <div class="name_right"><i class="el-icon-star-on"></i></div>
      </div>
      <!-- 公司地址 -->
      <div class="container_loc div_sty">行业：{{ item.corName }}</div>
      <!-- 公司名称 -->
      <div class="container_cor div_sty">地址：{{ item.details }}</div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    listArr1: {},
    listarr: {},
  },
  created() {
    console.log(this.listArr1);
  },
};
</script>

<style scoped lang="less">
.box {
  min-width: 800px;
  max-width: 840px;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  .container:hover {
    border: 1px solid #3291f8;
    // box-shadow: 0px 0px 2px 2px #3291f8;
    .name_left {
      color: #3291f8;
    }
  }
  .container {
    width: 48%;
    min-height: 100px;
    max-height: 100px;
    border: 1px solid gray;
    margin-left: 2%;
    border-radius: 10px;
    margin-top: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
    position: relative;
    .container_name {
      display: flex;
      font-size: 16px;
      font-weight: 600;
      position: relative;
      .logo {
        width: 30px;
        height: 30px;
        margin-right: 10px;
        img {
          width: 100%;
          height: 100%;
        }
      }
      .name_left {
        max-width: 50%;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
      }
      .ic_one {
        font-size: 23px;
        font-weight: 600;
        margin-left: 15px;
        color: #347caf;
      }
      .el-icon-star-off {
        margin-left: 8px;
      }
      .name_right {
        width: 28%;
        position: absolute;
        right: 0;
        color: #3291f8;
        font-size: 24px;
        text-align: right;
      }
    }
    .container_loc {
      font-size: 12px;
      font-weight: 400;
    }
    .container_cor {
      font-size: 13px;
      font-weight: 600;
    }
  }
  .div_sty {
    width: 89%;
    height: 30px;
    line-height: 30px;
    margin: auto;
    padding-left: 3%;
  }
  .container:nth-child(2n + 1) {
    margin-left: 0px;
  }
  .container:nth-child(1) {
    margin-top: 0px;
  }
  .container:nth-child(2) {
    margin-top: 0px;
  }
}
</style>
